Release 10.1A: OpenEdge Getting Started:
Object-oriented Programming
Progress session object references
The
FIRST-OBJECTandLAST-OBJECTattributes on theSESSIONsystem handle provide access to the list of currently instantiated objects.FIRST-OBJECTandLAST-OBJECTare both references toProgress.Lang.Objectobjects. Once you get the first object reference in the list usingFIRST-OBJECTor the last object reference in the list usingLAST-OBJECT, you can use theNEXT-SIBLINGandPREV-SIBLINGdata members onProgress.Lang.Objectto walk the list of currently instantiated objects.Because these are object references to
Progress.Lang.Object, if you need to use the object as its instantiated type (the type used in theNEWstatement), you need toCASTthe object to the required type. For more information on casting, see the "Assignment and the CAST function" section.For example, you could display the list of all class type names currently instantiated in the Progress session with the following code:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |